﻿<ColorPicker Value="@Value" OnValueChanged="@OnColorChanged" />
<ConsoleLogger @ref="Logger" class="mt-3" />

@code {
    [NotNull]
    private ConsoleLogger? Logger { get; set; }

    private string? Value { get; set; }

    private Task OnColorChanged(string color)
    {
        Logger.Log($"Selected color: {color}");
        return Task.CompletedTask;
    }
}
